package com.boco.modules.fdoc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.boco.modules.fdoc.dao.ServicePackDetailsDao;
import com.boco.modules.fdoc.model.ServicepackDetailEntity;
import com.boco.modules.fdoc.service.ServicePackDetailsService;
import com.boco.modules.fdoc.vo.ServicepackDetailsVo;

@Service
public class SevicePackDetailsServiceImpl implements ServicePackDetailsService {

	@Resource
	ServicePackDetailsDao detailsDao;
	
	@Override
	public Integer addPackdetail(ServicepackDetailEntity sdEntity) {
		return detailsDao.addPackdetail(sdEntity);
	}

	@Override
	public int updatePackDetail(ServicepackDetailEntity sdEntity) {
		return detailsDao.updatePackDetail(sdEntity);
	}
	
	@Override
	public Integer getCount(){
		return detailsDao.getCount();
	}

	@Override
	public ServicepackDetailEntity getDetailInfo(Integer id) {
		return detailsDao.getDetailInfo(id);
	}

	@Override
	public Integer deleteDetail(ServicepackDetailEntity sDetailEntity) {
		return detailsDao.deleteDetail(sDetailEntity);
	}

	@Override
	public List<ServicepackDetailEntity> getDetailListByName(ServicepackDetailsVo sVo) {
		return detailsDao.getDetailListByName(sVo);
	}

	@Override
	public List<ServicepackDetailEntity> getAll() {
		return detailsDao.getAll();
	}

}
